import java.util.Comparator;

public class NodeComparator implements Comparator {

	public int compare(Object f1, Object f2) {
		int FValue1 = ((Node) f1).getF();
		int FValue2 = ((Node) f2).getF();

		if (FValue1 > FValue2)
			return 1;

		else if (FValue1 < FValue2)
			return -1;
		else
			return 0;
	}
}
